package com.example.app;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
* 获取配置文件装载的值的信息
* */

@Component
@ConfigurationProperties(prefix = "personinfo")
public class GetPersoninfoProperties
{
	private  String name;
	private  int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}


}
